ThinkPHP5


think\response\Json
library\think\response\Json.php at line 16

Class Json

Response
└─Json

public class Json
extends Response


Method Summary
protected mixed

output(mixed data)

处理数据

Methods inherited from think\Response
__construct, cacheControl, code, content, contentType, create, data, eTag, expires, getCode, getContent, getData, getHeader, header, lastModified, options, output, send

Method Detail

library\think\response\Json.php at line 30

output

protected mixed output(mixed data)

处理数据

Parameters:
data - 要处理的数据
Throws:
\Exception

ThinkPHP5